var express = require('express');
var router = express.Router();
var {}=require('../model/model')
/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.post('/login',async(req,res)=>{
  console.log(123);
  
  const {username,password}=req.body
  console.log(username,password);
  res.send({code:200,msg:'登录成功',data:{username,password}})
})

module.exports = router;
